package com.liu.project.service;

import com.liu.project.pojo.User;
import com.liu.project.pojo.UserInfo;


public interface UserService {

    User findUserById(int id);

    UserInfo findUserDetailById(int id);

    User findUserByUserName(String username);

    User findUserByEmail(String email);

    //    查找用户  account 表示用户名或者email
    User findUserByUsernameAndPassword(String username,String password);
    //    保存用户
    void addUser(String username,String password,String role,int detailId);


    User findUsersByUserId(int  userId);

    boolean updateUserDetail(UserInfo userInfo);


    boolean updatePassword(int id,String newPassword);

    boolean updateHeader(int id,String url);






}
